package com.ece.devirtualizus.ModelDto;

import java.util.Date;

public class CombatDto extends AbstractEpreuve{
	private String idSender;
	private String idReceiver;
	private String idWinner;
	private String idLooser	;
	private int ptsEarnedWinner;
	private int ptsLostLooser;
	private GeneralProgressBarDto generalProgressBarDtoSender;
	private GeneralProgressBarDto generalProgressBarDtoReceiver;
	
	public int getPtsLostLooser() {
		return ptsLostLooser;
	}

	public void setPtsLostLooser(int ptsLostLooser) {
		this.ptsLostLooser = ptsLostLooser;
	}

	public GeneralProgressBarDto getGeneralProgressBarDtoSender() {
		return generalProgressBarDtoSender;
	}

	public void setGeneralProgressBarDtoSender(
			GeneralProgressBarDto generalProgressBarDtoSender) {
		this.generalProgressBarDtoSender = generalProgressBarDtoSender;
	}

	public GeneralProgressBarDto getGeneralProgressBarDtoReceiver() {
		return generalProgressBarDtoReceiver;
	}

	public void setGeneralProgressBarDtoReceiver(
			GeneralProgressBarDto generalProgressBarDtoReceiver) {
		this.generalProgressBarDtoReceiver = generalProgressBarDtoReceiver;
	}

	public CombatDto() {
		// TODO Auto-generated constructor stub
	}
	
	public CombatDto(String idSender,String idReceiver, String idWinner, String idLooser , int ptsEarnedWinner, int ptsLostLooser) {
		this.idSender=idSender;
		this.idReceiver= idReceiver;
		this.idWinner=idWinner;
		this.idLooser= idLooser;
		this.ptsEarnedWinner= ptsEarnedWinner;
		this.ptsLostLooser= ptsLostLooser;
		this.generalProgressBarDtoSender = new GeneralProgressBarDto();
		this.generalProgressBarDtoReceiver = new GeneralProgressBarDto();
		this.dateFin = new Date();
	}
	
	public String getIdSender() {
		return idSender;
	}
	public void setIdSender(String idSender) {
		this.idSender = idSender;
	}
	public String getIdReceiver() {
		return idReceiver;
	}
	public void setIdReceiver(String idReceiver) {
		this.idReceiver = idReceiver;
	}
	public String getIdWinner() {
		return idWinner;
	}
	public void setIdWinner(String idWinner) {
		this.idWinner = idWinner;
	}
	public String getIdLooser() {
		return idLooser;
	}
	public void setIdLooser(String idLooser) {
		this.idLooser = idLooser;
	}
	public int getPtsEarnedWinner() {
		return ptsEarnedWinner;
	}
	public void setPtsEarnedWinner(int ptsEarnedWinner) {
		this.ptsEarnedWinner = ptsEarnedWinner;
	}
	public int getPtsLoostLooser() {
		return ptsLostLooser;
	}
	public void setPtsLoostLooser(int ptsLoostLooser) {
		this.ptsLostLooser = ptsLoostLooser;
	}

	@Override
	public String toString() {
		return "CombatDto [idSender=" + idSender + ", idReceiver=" + idReceiver
				+ ", idWinner=" + idWinner + ", idLooser=" + idLooser
				+ ", ptsEarnedWinner=" + ptsEarnedWinner + ", ptsLostLooser="
				+ ptsLostLooser+ "]";
	}

	public Date getDateEnd() {
		return dateFin;
	}

	public void setDateEnd(Date dateFin) {
		this.dateFin = dateFin;
	}

}
//